﻿@using ZoomLaCMS.Models.Ask
@using ZoomLa.BLL
@{
    Layout = "~/Views/Shared/_ask.cshtml";
    VM_AskInfo vmask = new VM_AskInfo();
}
@functions{
    B_User buser = new B_User();
    protected string getstyle()
    {
        if (buser.CheckLogin())
        {
            return "display:inherit";
        }
        else return "display:none";
    }
}
@section head{
    <title> 成功提示-@(Call.SiteName)问答</title>
}
@section content{
    <div class="container">
        <ul class="breadcrumb">
            <li>您的位置：<a href="/">网站首页</a></li>
            <li><a href="/Ask">问答中心</a></li>
            <li class="active">提问成功</li>
        </ul>
    </div>
    <div class="container">
          @Html.Partial("comp/TopLinkBtns")
        <div class="header">
            <div class="h_top">
                <div class="clr"></div>
            </div>
            <div class="h_mid">
                <div class="h_mid_l"></div>
                <div id="tdh" class="h_mid_m">
                    <span class="pull-left" style="@getstyle()"><a href="MyAskList?QueType=">我的提问</a> <a href="MyAnswerlist">我的回答</a></span>

                </div>
                <div class="h_mid_r"></div>
            </div>
            @Html.Action("commonview")
        </div>

        @if (ViewBag.conflogin)
        {
            <div class="rg_inout msg" id="main">
                <h2 class="f-yahei">您的问题我们已经收到！请耐心等待网友的回答：）</h2>
                <div class="submit-fallback">
                    <h3 class="f-yahei">知恩图报，别忘了及时推荐为满意回答哦~</h3>
                    <a href="list" title="查看问题" class="btn btn-info">好，一定</a>
                </div>
            </div>
        }
        else
        {
            <div id="NoUser_div">
                <h3 class="f-yahei">提示：当前为[匿名提问模式]，系统总共注册会员数@(vmask.UserCount)人。</h3>
                <div class="submit-fallback">
                    <h3 class="f-yahei">知恩图报，别忘了及时推荐为满意回答哦~</h3>
                    <a href="list" title="查看问题" class="btn btn-info">好，一定</a>
                </div>
            </div>
        }

    </div>
    <div class="ask_bottom">
        <p class="text-center"><a target="_blank" title="如何提问" href="http://help.z01.com/?index/help.html#如何提问">如何提问</a> <a target="_blank" title="如何回答" href="http://help.z01.com/?index/help.html#如何回答">如何回答</a> <a target="_blank" title="如何获得积分" href="http://help.z01.com/?index/help.html#如何获得积分">如何获得积分</a> <a target="_blank" title="如何处理问题" href="http://help.z01.com/?index/help.html#如何处理问题">如何处理问题</a></p>
        <p class="text-center">@MvcHtmlString.Create(Call.GetLabel("{$Copyright/}"))</p>
    </div>

}
@section script{
    <script>
        function show() {
            var div = document.getElementById("show");
            if (div.style.display == "none") {
                div.style.display = "block";
            }
        }
    </script>
}